package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/input/form"
	"hotgo/internal/model/input/sysin"
)

type StoreListReq struct {
	g.Meta `path:"/store/member/list" method:"get" tags:"API-商家" summary:"获取门店列表"`
	form.PageReq
}

type StoreListRes struct {
	form.PageRes
	List []*sysin.StoreMemberListModel
}

type StoreViewReq struct {
	g.Meta `path:"/store/member/view" method:"get" tags:"API-商家" summary:"获取门店详情"`
	sysin.StoreViewInp
}

type StoreViewRes struct {
	*sysin.StoreViewModel
}

type StoreMemberAUReq struct {
	g.Meta `path:"/store/member/editMember" method:"post" tags:"API-商家" summary:"添加或修改门店成员"`
	sysin.StoreMemberAUInp
}

type StoreMemberAURes struct {
	*sysin.StoreMemberAUModel
}

type StoreMemberListReq struct {
	g.Meta  `path:"/store/member/member_list" method:"get" tags:"API-商家" summary:"获取门店成员列表"`
	StoreID int64 `json:"store_id" v:"required#门店id不能为空"`
	form.PageReq
}

type StoreMemberListRes struct {
	form.PageRes
	List []*sysin.StoreMemberListModel
}

type StoreMemberDeleteReq struct {
	g.Meta `path:"/store/member/delete" method:"post" tags:"API-商家" summary:"删除门店成员"`
	sysin.StoreMemberDeleteInp
}

type StoreMemberDeleteRes struct {
	*sysin.StoreMemberDeleteModel
}

// 数据板块
type StoreDataReq struct {
	g.Meta `path:"/store/member/data" method:"get" tags:"API-商家" summary:"获取数据板块"`
	sysin.StoreDataInp
}

type StoreDataRes struct {
	*sysin.StoreDataModel
}
